const {
  hear,
  oauth,
  userinfo,
  sdk,
  goods
} = require("../app/controllers/wechat")
module.exports = router => {
  router.get('/sdk', sdk);
  // 消息中间件
  router.get('/wx-hear', hear);
  router.post('/wx-hear', hear);

  // 调到微信授权中间页面
  router.get('/wx-oauth', oauth);
  // 通过code 获取用户信息
  router.get('/userinfo', userinfo)
  router.get('/goods', goods)
}
